import 'package:flutter/material.dart';
import 'package:flutter/painting.dart';
import 'package:flutter/widgets.dart';
import 'package:wanchong/path.dart';

//import 'package:flutter_cupertino_data_picker/flutter_cupertino_data_picker.dart';
class SignIn extends StatefulWidget {
  @override
  _SignInState createState() => _SignInState();
}

class _SignInState extends State<SignIn> {
  var startColor = 0;
  var thisDay = 0;
  DateTime now = new DateTime.now();
  void didChangeDependencies() {
    print(now);
  }

  var sign_record = [
    {"isSign": false, "day": "07.01"},
    {"isSign": true, "day": "07.02"},
    {"isSign": true, "day": "今天"},
    {"isSign": false, "day": "07.04"},
    {"isSign": false, "day": "07.05"},
    {"isSign": false, "day": "07.06"},
    {"isSign": false, "day": "07.07"}
  ];
  @override
  Widget build(BuildContext context) {
    return Container(
      decoration: BoxDecoration(
        image: DecorationImage(
          image: startColor == 0
              ? AssetImage('assets/store/qiandao_bg_top_img@3x.png')
              : AssetImage('assets/setting/bg.png'),
          fit: BoxFit.contain,
          alignment: Alignment.topCenter,
        ),
        color: Color(0xFFFAFAFA),
      ),
      child: Scaffold( 
        backgroundColor: Color(0x00000000),
        appBar: new PreferredSize(
          child: new Container(
            padding:
                new EdgeInsets.only(top: MediaQuery.of(context).padding.top),
            child: Container(
              child: Row(
                children: <Widget>[
                  Container(
                    width: 50.0,
                    height: 50.0,
                    child: Image.asset('assets/login/fanhui@3x.png'),
                  ),
                  Expanded(
                    child: Container(
                      child: Text(
                        '签到',
                        style: TextStyle(
                          color: Color(0xFF000000),
                          fontSize: 17,
                          fontWeight: FontWeight.w700,
                        ),
                      ),
                      height: 50.0,
                      alignment: Alignment.center,
                    ),
                  ),
                  Container(
                    width: 50.0,
                    height: 50.0,
                  ),
                ],
              ),
            ),
            decoration: new BoxDecoration(
              gradient: new LinearGradient(
                  colors: startColor == 1
                      ? [Color(0xFFFEE140), Color(0xFFFFCC33)]
                      : [Color(0x00000000), Color(0x00000000)],
                  begin: const FractionalOffset(0.0, 0.0),
                  end: const FractionalOffset(1.0, 1.0),
                  stops: [0.0, 1.0],
                  tileMode: TileMode.clamp),
            ),
          ),
          preferredSize: new Size(MediaQuery.of(context).size.width, 150.0),
        ),
        body: Container(
          child: NotificationListener(
            onNotification: (ScrollNotification note) {
              if (note.metrics.pixels.toInt() > 50) {
                setState(() {
                  this.startColor = 1;
                });
              } else {
                setState(() {
                  this.startColor = 0;
                });
              }
            },
            child: ListView(
              //physics: BouncingScrollPhysics(),
              children: <Widget>[
                Container(
                  height: 50.0,
                  margin: EdgeInsets.only(left: 15.0, right: 0.0),
                  child: Stack(
                    children: <Widget>[
                      Positioned(
                        right: 0,
                        child: Image.asset(
                          'assets/user/sign_in_jifen_btn@2x.png',
                          height: 50.0,
                          fit: BoxFit.fitHeight,
                        ),
                      ),
                      Positioned(
                          right: 0,
                          child: GestureDetector(
                            onTap: () {
                              Navigator.of(context).pushNamed(RankPath);
                            },
                            child: Container(
                              height: 47.0,
                              width: 75.0,
                              alignment: Alignment.center,
                              child: Text(
                                '积分明细',
                                style: TextStyle(
                                  fontSize: 14.0,
                                  color: Color(0xFF000000),
                                ),
                              ),
                            ),
                          )),
                      new Align(
                        alignment: Alignment.centerLeft,
                        child: Text(
                          '可用积分：23',
                          style: TextStyle(
                            fontSize: 17.0,
                            color: Color(0xFF000000),
                          ),
                        ),
                      ),
                    ],
                  ),
                ),
                signin(),
                gift(),
                daytask(),
                limitedtime(),
              ],
            ),
          ),
        ),
      ),
    );
  }

  Widget signin() {
    return Container(
      height: 215.0,
      margin: EdgeInsets.only(left: 15.0, right: 15.0, top: 15.0),
      decoration: new BoxDecoration(
        border: Border.all(color: Colors.white, width: 1.0),
        color: Colors.white,
        borderRadius: BorderRadius.circular(5.0),
      ),
      child: Column(
        children: <Widget>[
          Container(
            margin: EdgeInsets.only(left: 15, right: 15),
            height: 50.0,
            child: Row(
              children: <Widget>[
                Text(
                  '签到日历',
                  style: TextStyle(
                      fontSize: 14.0,
                      fontWeight: FontWeight.w700,
                      color: Color(0xFF3C4450)),
                ),
                Expanded(
                  child: Container(),
                ),
                GestureDetector(
                  onTap: () {
                    Navigator.of(context).pushNamed(KnowzselectPath);
                  },
                  child: Container(),
                  // child: Text(
                  //   '签到记录',
                  //   style: TextStyle(
                  //     fontSize: 11.0,
                  //     color: Color(0xFFB4BEC6),
                  //   ),
                  // ),
                ),
                // Container(
                //   margin: EdgeInsets.only(left: 7.0, top: 2.0),
                //   child: Image.asset(
                //     'assets/user/center_order_icon_fanhui.png',
                //     width: 5,
                //     height: 10,
                //   ),
                // ),
              ],
            ),
          ),
          Container(
            height: 80.0,
            margin: EdgeInsets.only(left: 10, right: 10),
            child: Column(
              children: <Widget>[
                Container(
                  height: 50.0,
                  child: signinImg(),
                ),
                Container(
                  height: 30.0,
                  child: signinText(),
                )
              ],
            ),
          ),
          GestureDetector(
            onTap: () {
              print('点击咯签到');
            },
            child: Container(
              margin: EdgeInsets.only(left: 40.0, right: 40.0, top: 15.0),
              height: 50.0,
              alignment: Alignment.center,
              decoration: new BoxDecoration(
                // border: Border.all(color: Colors.white, width: 1.0),
                borderRadius: BorderRadius.circular(50.0),
                gradient: new LinearGradient(
                    colors: [Color(0xFFFEE140), Color(0xFFFFCC33)],
                    begin: const FractionalOffset(0.0, 0.0),
                    end: const FractionalOffset(1.0, 1.0),
                    stops: [0.0, 1.0],
                    tileMode: TileMode.clamp),
                    // boxShadow: [BoxShadow(color: Color(0xAAFEE140),blurRadius: 7.0,offset: Offset(0, 5),spreadRadius: 1.0)]
              ),
              child: Text(
                '签到领积分',
                style: TextStyle(
                  color: Color(0xFF000000),
                  fontSize: 17,
                ),
              ),
            ),
          ),
        ],
      ),
    );
  }

  Widget signinImg() {
    var a;
    List<Widget> tiles = [];
    Widget ContainerGl;
    for (a = 0; a < sign_record.length; a++) {
      if (sign_record[a]['day'] == '今天') {
        setState(() {
          this.thisDay = a;
        });
      }
      tiles.add(
        Expanded(
          child: Row(
            children: <Widget>[
              Expanded(
                child: Container(
                  height: 1.0,
                  color: a == 0 ? Color(0xFFFFFFFF) : Color(0xFFFFCC33),
                ),
              ),
              Container(
                child: Image.asset(
                  sign_record[a]['day'] == '今天'
                      ? sign_record[a]['isSign']
                          ? 'assets/signin/sign_in_rili_icon_a@2x.png'
                          : 'assets/signin/sign_in_rili_icon_c@2x.png'
                      : thisDay - a > 0
                          ? sign_record[a]['isSign']
                              ? 'assets/signin/sign_in_rili_icon_a@2x.png'
                              : 'assets/signin/sign_in_rili_icon_b@2x.png'
                          : 'assets/signin/sign_in_rili_icon_d@2x.png',
                  width: sign_record[a]['day'] == '今天'
                      ? sign_record[a]['isSign'] ? 20.0 : 30.0
                      : thisDay > a
                          ? sign_record[a]['isSign'] ? 20.0 : 10.0
                          : 30.0,
                  fit: BoxFit.fitWidth,
                ),
              ),
              Expanded(
                child: Container(
                  height: 1.0,
                  color: a == 6 ? Color(0xFFFFFFFF) : Color(0xFFFFCC33),
                ),
              ),
            ],
          ),
        ),
      );
    }
    ContainerGl = new Row(
      children: tiles,
    );
    return ContainerGl;
  }

  Widget signinText() {
    List<Widget> tiles = [];
    Widget ContainerGl;
    for (var item in sign_record) {
      tiles.add(
        Expanded(
          child: Container(
            alignment: Alignment.center,
            child: Text(
              item['day'],
              overflow: TextOverflow.ellipsis,
              style: new TextStyle(fontSize: 11.0, color: Color(0xFF3C4450)),
            ),
          ),
        ),
      );
    }
    ContainerGl = new Row(
      children: tiles,
    );
    return ContainerGl;
  }

  Widget gift() {
    return Container(
      height: 250.0,
      margin: EdgeInsets.only(left: 15.0, right: 15.0, top: 15.0),
      decoration: new BoxDecoration(
        border: Border.all(color: Colors.white, width: 1.0),
        color: Colors.white,
        borderRadius: BorderRadius.circular(5.0),
      ),
      child: Column(
        children: <Widget>[
          Container(
            height: 40.0,
            margin: EdgeInsets.only(left: 15.0),
            alignment: Alignment.centerLeft,
            child: Text(
              '本月连续签到礼包',
              style: TextStyle(
                  color: Color(0xFF3C4450),
                  fontSize: 14.0,
                  fontWeight: FontWeight.w700),
            ),
          ),
          Container(
            margin: EdgeInsets.only(left: 15.0, right: 15.0),
            color: Colors.white,
            height: 69.0,
            child: Row(
              children: <Widget>[
                Container(
                  child: Image.asset(
                    'assets/signin/sign_in_libao_icon_a@2x.png',
                    width: 40.0,
                    height: 40.0,
                    fit: BoxFit.fitWidth,
                  ),
                ),
                Expanded(
                  child: Container(
                    padding: EdgeInsets.only(left: 10.0),
                    child: Text(
                      '当月累计签到7天',
                      style:
                          TextStyle(color: Color(0xFF3C4450), fontSize: 14.0),
                    ),
                  ),
                ),
                Container(
                  width: 60.0,
                  height: 24.0,
                  alignment: Alignment.center,
                  decoration: new BoxDecoration(
                    border: Border.all(color: Color(0xFFEEEEEE), width: 1.0),
                    color: Color(0xFFEEEEEE),
                    borderRadius: BorderRadius.circular(24.0),
                  ),
                  child: Text(
                    '已领取',
                    style: TextStyle(color: Color(0xFFB4BEC6), fontSize: 13.0),
                  ),
                ),
              ],
            ),
          ),
          Container(
            margin: EdgeInsets.only(left: 15.0, right: 15.0),
            color: Colors.white,
            height: 69.0,
            child: Row(
              children: <Widget>[
                Container(
                  child: Image.asset(
                    'assets/signin/sign_in_libao_icon_a@2x.png',
                    width: 40.0,
                    height: 40.0,
                    fit: BoxFit.fitWidth,
                  ),
                ),
                Expanded(
                  child: Container(
                    padding: EdgeInsets.only(left: 10.0),
                    child: Text(
                      '当月累计签到15天',
                      style:
                          TextStyle(color: Color(0xFF3C4450), fontSize: 14.0),
                    ),
                  ),
                ),
                Container(
                  width: 60.0,
                  height: 24.0,
                  alignment: Alignment.center,
                  decoration: new BoxDecoration(
                    gradient: new LinearGradient(
                        colors: [Color(0xFFFEE140), Color(0xFFFFCC33)],
                        begin: const FractionalOffset(0.0, 0.0),
                        end: const FractionalOffset(1.0, 1.0),
                        stops: [0.0, 1.0],
                        tileMode: TileMode.clamp),
                    border: Border.all(color: Color(0xFFEEEEEE), width: 1.0),
                    color: Color(0xFFEEEEEE),
                    borderRadius: BorderRadius.circular(24.0),
                  ),
                  child: Text(
                    '领取',
                    style: TextStyle(color: Color(0xFF3C4450), fontSize: 13.0),
                  ),
                ),
              ],
            ),
          ),
          Container(
            margin: EdgeInsets.only(left: 15.0, right: 15.0),
            color: Colors.white,
            height: 69.0,
            child: Row(
              children: <Widget>[
                Container(
                  child: Image.asset(
                    'assets/signin/sign_in_libao_icon_a@2x.png',
                    width: 40.0,
                    height: 40.0,
                    fit: BoxFit.fitWidth,
                  ),
                ),
                Expanded(
                  child: Container(
                    padding: EdgeInsets.only(left: 10.0),
                    child: Text(
                      '当月累计签到25天',
                      style:
                          TextStyle(color: Color(0xFF3C4450), fontSize: 14.0),
                    ),
                  ),
                ),
                Container(
                  width: 60.0,
                  height: 24.0,
                  alignment: Alignment.center,
                  decoration: new BoxDecoration(
                    border: Border.all(color: Color(0xFFEEEEEE), width: 1.0),
                    color: Color(0xFFEEEEEE),
                    borderRadius: BorderRadius.circular(24.0),
                  ),
                  child: Text(
                    '待完成',
                    style: TextStyle(color: Color(0xFFB4BEC6), fontSize: 13.0),
                  ),
                ),
              ],
            ),
          ),
        ],
      ),
    );
  }

  Widget daytask() {
    return Container(
      height: 250.0,
      margin: EdgeInsets.only(left: 15.0, right: 15.0, top: 15.0),
      decoration: new BoxDecoration(
        border: Border.all(color: Colors.white, width: 1.0),
        color: Colors.white,
        borderRadius: BorderRadius.circular(5.0),
      ),
      child: Column(
        children: <Widget>[
          Container(
            height: 40.0,
            margin: EdgeInsets.only(left: 15.0),
            alignment: Alignment.centerLeft,
            child: Text(
              '每日任务',
              style: TextStyle(
                  color: Color(0xFF3C4450),
                  fontSize: 14.0,
                  fontWeight: FontWeight.w700),
            ),
          ),
          Container(
            margin: EdgeInsets.only(left: 15.0, right: 15.0),
            color: Colors.white,
            height: 69.0,
            child: Row(
              children: <Widget>[
                Container(
                  child: Image.asset(
                    'assets/signin/sign_in_libao_icon_a@2x.png',
                    width: 40.0,
                    height: 40.0,
                    fit: BoxFit.fitWidth,
                  ),
                ),
                Expanded(
                  child: Container(
                    padding: EdgeInsets.only(left: 10.0),
                    //alignment: Alignment.centerLeft,
                    child: Column(
                      children: <Widget>[
                        Container(
                          height: 20.0,
                          margin: EdgeInsets.only(top: 15.0),
                          child: Row(
                            children: <Widget>[
                              Text(
                                '点赞狂魔',
                                style: TextStyle(
                                  color: Color(0xFF3C4450),
                                  fontSize: 14.0,
                                ),
                              ),
                              Container(
                                margin: EdgeInsets.only(left: 10.0),
                                child: Text(
                                  '+10积分',
                                  style: TextStyle(
                                    color: Color(0xFF2495FF),
                                    fontSize: 14.0,
                                  ),
                                ),
                              )
                            ],
                          ),
                        ),
                        Container(
                          alignment: Alignment.centerLeft,
                          height: 20.0,
                          child: Text(
                            '给视频、攻略或问答点赞',
                            style: TextStyle(
                              color: Color(0xFFB4BEC6),
                              fontSize: 11.0,
                            ),
                          ),
                        )
                      ],
                    ),
                  ),
                ),
                Container(
                  width: 62.0,
                  height: 69.0,
                  child: Column(
                    children: <Widget>[
                      Container(
                        width: 60.0,
                        height: 24.0,
                        margin: EdgeInsets.only(top: 15.0),
                        alignment: Alignment.center,
                        decoration: new BoxDecoration(
                          border:
                              Border.all(color: Color(0xFFEEEEEE), width: 1.0),
                          color: Color(0xFFEEEEEE),
                          borderRadius: BorderRadius.circular(24.0),
                        ),
                        child: Text(
                          '已领取',
                          style: TextStyle(
                              color: Color(0xFFB4BEC6), fontSize: 13.0),
                        ),
                      ),
                      Container(
                        width: 60.0,
                        alignment: Alignment.center,
                        child: Text(
                          '进度 0/1',
                          style: TextStyle(
                              color: Color(0xFFB4BEC6), fontSize: 9.0),
                        ),
                      ),
                    ],
                  ),
                ),
              ],
            ),
          ),
          Container(
            margin: EdgeInsets.only(left: 15.0, right: 15.0),
            color: Colors.white,
            height: 69.0,
            child: Row(
              children: <Widget>[
                Container(
                  child: Image.asset(
                    'assets/signin/sign_in_libao_icon_a@2x.png',
                    width: 40.0,
                    height: 40.0,
                    fit: BoxFit.fitWidth,
                  ),
                ),
                Expanded(
                  child: Container(
                    padding: EdgeInsets.only(left: 10.0),
                    //alignment: Alignment.centerLeft,
                    child: Column(
                      children: <Widget>[
                        Container(
                          height: 20.0,
                          margin: EdgeInsets.only(top: 15.0),
                          child: Row(
                            children: <Widget>[
                              Text(
                                '宠型宠秀',
                                style: TextStyle(
                                  color: Color(0xFF3C4450),
                                  fontSize: 14.0,
                                ),
                              ),
                              Container(
                                margin: EdgeInsets.only(left: 10.0),
                                child: Text(
                                  '+15积分',
                                  style: TextStyle(
                                    color: Color(0xFF2495FF),
                                    fontSize: 14.0,
                                  ),
                                ),
                              )
                            ],
                          ),
                        ),
                        Container(
                          alignment: Alignment.centerLeft,
                          height: 20.0,
                          child: Text(
                            '发布一条录制视频、成为明日网红',
                            style: TextStyle(
                              color: Color(0xFFB4BEC6),
                              fontSize: 11.0,
                            ),
                          ),
                        )
                      ],
                    ),
                  ),
                ),
                Container(
                  width: 62.0,
                  height: 69.0,
                  child: Column(
                    children: <Widget>[
                      Container(
                        width: 60.0,
                        height: 24.0,
                        margin: EdgeInsets.only(top: 15.0),
                        alignment: Alignment.center,
                        decoration: new BoxDecoration(
                          border:
                              Border.all(color: Color(0xFFEEEEEE), width: 1.0),
                          color: Color(0xFFEEEEEE),
                          borderRadius: BorderRadius.circular(24.0),
                        ),
                        child: Text(
                          '已领取',
                          style: TextStyle(
                              color: Color(0xFFB4BEC6), fontSize: 13.0),
                        ),
                      ),
                      Container(
                        width: 60.0,
                        alignment: Alignment.center,
                        child: Text(
                          '进度 0/1',
                          style: TextStyle(
                              color: Color(0xFFB4BEC6), fontSize: 9.0),
                        ),
                      ),
                    ],
                  ),
                ),
              ],
            ),
          ),
          Container(
            margin: EdgeInsets.only(left: 15.0, right: 15.0),
            color: Colors.white,
            height: 69.0,
            child: Row(
              children: <Widget>[
                Container(
                  child: Image.asset(
                    'assets/signin/sign_in_libao_icon_a@2x.png',
                    width: 40.0,
                    height: 40.0,
                    fit: BoxFit.fitWidth,
                  ),
                ),
                Expanded(
                  child: Container(
                    padding: EdgeInsets.only(left: 10.0),
                    //alignment: Alignment.centerLeft,
                    child: Column(
                      children: <Widget>[
                        Container(
                          height: 20.0,
                          margin: EdgeInsets.only(top: 15.0),
                          child: Row(
                            children: <Widget>[
                              Text(
                                '爱的分享',
                                style: TextStyle(
                                  color: Color(0xFF3C4450),
                                  fontSize: 14.0,
                                ),
                              ),
                              Container(
                                margin: EdgeInsets.only(left: 10.0),
                                child: Text(
                                  '+15积分',
                                  style: TextStyle(
                                    color: Color(0xFF2495FF),
                                    fontSize: 14.0,
                                  ),
                                ),
                              )
                            ],
                          ),
                        ),
                        Container(
                          alignment: Alignment.centerLeft,
                          height: 20.0,
                          child: Text(
                            '分享视频、攻略到社交朋友圈',
                            style: TextStyle(
                              color: Color(0xFFB4BEC6),
                              fontSize: 11.0,
                            ),
                          ),
                        )
                      ],
                    ),
                  ),
                ),
                Container(
                  width: 62.0,
                  height: 69.0,
                  child: Column(
                    children: <Widget>[
                      Container(
                        width: 60.0,
                        height: 24.0,
                        margin: EdgeInsets.only(top: 15.0),
                        alignment: Alignment.center,
                        decoration: new BoxDecoration(
                          border:
                              Border.all(color: Color(0xFFEEEEEE), width: 1.0),
                          color: Color(0xFFEEEEEE),
                          borderRadius: BorderRadius.circular(24.0),
                        ),
                        child: Text(
                          '已领取',
                          style: TextStyle(
                              color: Color(0xFFB4BEC6), fontSize: 13.0),
                        ),
                      ),
                      Container(
                        width: 60.0,
                        alignment: Alignment.center,
                        child: Text(
                          '进度 0/1',
                          style: TextStyle(
                              color: Color(0xFFB4BEC6), fontSize: 9.0),
                        ),
                      ),
                    ],
                  ),
                ),
              ],
            ),
          ),
        ],
      ),
    );
  }

  Widget limitedtime() {
    return Container(
      height: 120.0,
      margin: EdgeInsets.only(left: 15.0, right: 15.0, top: 15.0, bottom: 15.0),
      decoration: new BoxDecoration(
        border: Border.all(color: Colors.white, width: 1.0),
        color: Colors.white,
        borderRadius: BorderRadius.circular(5.0),
      ),
      child: Column(
        children: <Widget>[
          Container(
            height: 40.0,
            margin: EdgeInsets.only(left: 15.0),
            alignment: Alignment.centerLeft,
            child: Text(
              '限时任务',
              style: TextStyle(
                  color: Color(0xFF3C4450),
                  fontSize: 14.0,
                  fontWeight: FontWeight.w700),
            ),
          ),
          Container(
            margin: EdgeInsets.only(left: 15.0, right: 15.0),
            color: Colors.white,
            height: 69.0,
            child: Row(
              children: <Widget>[
                Container(
                  child: Image.asset(
                    'assets/signin/sign_in_libao_icon_a@2x.png',
                    width: 40.0,
                    height: 40.0,
                    fit: BoxFit.fitWidth,
                  ),
                ),
                Expanded(
                  child: Container(
                    padding: EdgeInsets.only(left: 10.0),
                    //alignment: Alignment.centerLeft,
                    child: Column(
                      children: <Widget>[
                        Container(
                          height: 20.0,
                          margin: EdgeInsets.only(top: 15.0),
                          child: Row(
                            children: <Widget>[
                              Text(
                                '购买有礼',
                                style: TextStyle(
                                  color: Color(0xFF3C4450),
                                  fontSize: 14.0,
                                ),
                              ),
                              Container(
                                margin: EdgeInsets.only(left: 10.0),
                                child: Text(
                                  '+500积分',
                                  style: TextStyle(
                                    color: Color(0xFF2495FF),
                                    fontSize: 14.0,
                                  ),
                                ),
                              )
                            ],
                          ),
                        ),
                        Container(
                          alignment: Alignment.centerLeft,
                          height: 20.0,
                          child: Text(
                            '购买官方宠物穿戴设备，并绑定成功',
                            style: TextStyle(
                              color: Color(0xFFB4BEC6),
                              fontSize: 11.0,
                            ),
                          ),
                        )
                      ],
                    ),
                  ),
                ),
                Container(
                  width: 62.0,
                  height: 69.0,
                  child: Column(
                    children: <Widget>[
                      Container(
                        width: 60.0,
                        height: 24.0,
                        margin: EdgeInsets.only(top: 15.0),
                        alignment: Alignment.center,
                        decoration: new BoxDecoration(
                          border:
                              Border.all(color: Color(0xFFEEEEEE), width: 1.0),
                          color: Color(0xFFEEEEEE),
                          borderRadius: BorderRadius.circular(24.0),
                        ),
                        child: Text(
                          '已领取',
                          style: TextStyle(
                              color: Color(0xFFB4BEC6), fontSize: 13.0),
                        ),
                      ),
                      Container(
                        width: 60.0,
                        alignment: Alignment.center,
                        child: Text(
                          '进度 0/1',
                          style: TextStyle(
                              color: Color(0xFFB4BEC6), fontSize: 9.0),
                        ),
                      ),
                    ],
                  ),
                ),
              ],
            ),
          ),
        ],
      ),
    );
  }
}
